package com.dd.stack.mybatisplus.pojo.params;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/1/14 23:07
 * @Description DataObject查询请求参数
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("DataObject查询请求参数")
public class DataObjectQueryParams {
    @ApiModelProperty("整型Min")
    private Integer intValueMin;
    @ApiModelProperty("整型Max")
    private Integer intValueMax;
    @ApiModelProperty("长整型Min")
    private Long longValueMin;
    @ApiModelProperty("长整型Max")
    private Long longValueMax;
    @ApiModelProperty("双精度浮点型Min")
    private Double doubleValueMin;
    @ApiModelProperty("双精度浮点型Max")
    private Double doubleValueMax;
    @ApiModelProperty("字符串类型")
    private String stringValue;
    @ApiModelProperty("json字符串类型数据")
    private String jsonValue;
    @ApiModelProperty("本地日期时间start")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "local_datetime_value")
    private LocalDateTime localDateTimeValueStart;
    @ApiModelProperty("本地日期时间end")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "local_datetime_value")
    private LocalDateTime localDateTimeValueEnd;
}